package com.sky.service;

import com.sky.entity.AddressBook;

import java.util.List;

public interface AddressBookService {
    //新增收货地址
    void add(AddressBook addressBook);
    //查询所有地址
    List<AddressBook> list(AddressBook addressBook);
    //设置默认地址
    void setDefault(AddressBook addressBook);
    //根据id查询地址
    AddressBook getById(Long id);
    //修改地址
    void update(AddressBook addressBook);
    //删除地址
    void delete(Long id);


}
